Integrand size = 27, antiderivative size = 287 \[ \int \frac {(d+e x)^3 \left (a+b x+c x^2\right )}{\sqrt {f+g x}} \, dx=-\frac {2 (e f-d g)^3 \left (c f^2-b f g+a g^2\right ) \sqrt {f+g x}}{g^6}+\frac {2 (e f-d g)^2 (c f (5 e f-2 d g)-g (4 b e f-b d g-3 a e g)) (f+g x)^{3/2}}{3 g^6}+\frac {2 (e f-d g) \left (3 e g (2 b e f-b d g-a e g)-c \left (10 e^2 f^2-8 d e f g+d^2 g^2\right )\right ) (f+g x)^{5/2}}{5 g^6}-\frac {2 e \left (e g (4 b e f-3 b d g-a e g)-c \left (10 e^2 f^2-12 d e f g+3 d^2 g^2\right )\right ) (f+g x)^{7/2}}{7 g^6}-\frac {2 e^2 (5 c e f-3 c d g-b e g) (f+g x)^{9/2}}{9 g^6}+\frac {2 c e^3 (f+g x)^{11/2}}{11 g^6} \]
[Out]
Time = 0.29 (sec) , antiderivative size = 287, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.074, Rules used = {911, 1167} \[ \int \frac {(d+e x)^3 \left (a+b x+c x^2\right )}{\sqrt {f+g x}} \, dx=-\frac {2 e (f+g x)^{7/2} \left (e g (-a e g-3 b d g+4 b e f)-c \left (3 d^2 g^2-12 d e f g+10 e^2 f^2\right )\right )}{7 g^6}+\frac {2 (f+g x)^{5/2} (e f-d g) \left (3 e g (-a e g-b d g+2 b e f)-c \left (d^2 g^2-8 d e f g+10 e^2 f^2\right )\right )}{5 g^6}-\frac {2 \sqrt {f+g x} (e f-d g)^3 \left (a g^2-b f g+c f^2\right )}{g^6}+\frac {2 (f+g x)^{3/2} (e f-d g)^2 (c f (5 e f-2 d g)-g (-3 a e g-b d g+4 b e f))}{3 g^6}-\frac {2 e^2 (f+g x)^{9/2} (-b e g-3 c d g+5 c e f)}{9 g^6}+\frac {2 c e^3 (f+g x)^{11/2}}{11 g^6} \]
[In]
[Out]
Rule 911
Rule 1167
Rubi steps \begin{align*} \text {integral}& = \frac {2 \text {Subst}\left (\int \left (\frac {-e f+d g}{g}+\frac {e x^2}{g}\right )^3 \left (\frac {c f^2-b f g+a g^2}{g^2}-\frac {(2 c f-b g) x^2}{g^2}+\frac {c x^4}{g^2}\right ) \, dx,x,\sqrt {f+g x}\right )}{g} \\ & = \frac {2 \text {Subst}\left (\int \left (\frac {(-e f+d g)^3 \left (c f^2-b f g+a g^2\right )}{g^5}+\frac {(e f-d g)^2 (c f (5 e f-2 d g)-g (4 b e f-b d g-3 a e g)) x^2}{g^5}+\frac {(e f-d g) \left (3 e g (2 b e f-b d g-a e g)-c \left (10 e^2 f^2-8 d e f g+d^2 g^2\right )\right ) x^4}{g^5}+\frac {e \left (-e g (4 b e f-3 b d g-a e g)+c \left (10 e^2 f^2-12 d e f g+3 d^2 g^2\right )\right ) x^6}{g^5}+\frac {e^2 (-5 c e f+3 c d g+b e g) x^8}{g^5}+\frac {c e^3 x^{10}}{g^5}\right ) \, dx,x,\sqrt {f+g x}\right )}{g} \\ & = -\frac {2 (e f-d g)^3 \left (c f^2-b f g+a g^2\right ) \sqrt {f+g x}}{g^6}+\frac {2 (e f-d g)^2 (c f (5 e f-2 d g)-g (4 b e f-b d g-3 a e g)) (f+g x)^{3/2}}{3 g^6}+\frac {2 (e f-d g) \left (3 e g (2 b e f-b d g-a e g)-c \left (10 e^2 f^2-8 d e f g+d^2 g^2\right )\right ) (f+g x)^{5/2}}{5 g^6}-\frac {2 e \left (e g (4 b e f-3 b d g-a e g)-c \left (10 e^2 f^2-12 d e f g+3 d^2 g^2\right )\right ) (f+g x)^{7/2}}{7 g^6}-\frac {2 e^2 (5 c e f-3 c d g-b e g) (f+g x)^{9/2}}{9 g^6}+\frac {2 c e^3 (f+g x)^{11/2}}{11 g^6} \\ \end{align*}
Time = 0.29 (sec) , antiderivative size = 412, normalized size of antiderivative = 1.44 \[ \int \frac {(d+e x)^3 \left (a+b x+c x^2\right )}{\sqrt {f+g x}} \, dx=\frac {2 \sqrt {f+g x} \left (c \left (231 d^3 g^3 \left (8 f^2-4 f g x+3 g^2 x^2\right )+297 d^2 e g^2 \left (-16 f^3+8 f^2 g x-6 f g^2 x^2+5 g^3 x^3\right )+33 d e^2 g \left (128 f^4-64 f^3 g x+48 f^2 g^2 x^2-40 f g^3 x^3+35 g^4 x^4\right )-5 e^3 \left (256 f^5-128 f^4 g x+96 f^3 g^2 x^2-80 f^2 g^3 x^3+70 f g^4 x^4-63 g^5 x^5\right )\right )+11 g \left (9 a g \left (35 d^3 g^3+35 d^2 e g^2 (-2 f+g x)+7 d e^2 g \left (8 f^2-4 f g x+3 g^2 x^2\right )+e^3 \left (-16 f^3+8 f^2 g x-6 f g^2 x^2+5 g^3 x^3\right )\right )+b \left (105 d^3 g^3 (-2 f+g x)+63 d^2 e g^2 \left (8 f^2-4 f g x+3 g^2 x^2\right )+27 d e^2 g \left (-16 f^3+8 f^2 g x-6 f g^2 x^2+5 g^3 x^3\right )+e^3 \left (128 f^4-64 f^3 g x+48 f^2 g^2 x^2-40 f g^3 x^3+35 g^4 x^4\right )\right )\right )\right )}{3465 g^6} \]
[In]
[Out]
Time = 0.53 (sec) , antiderivative size = 285, normalized size of antiderivative = 0.99
method | result | size |
derivativedivides | \(\frac {\frac {2 c \,e^{3} \left (g x +f \right )^{\frac {11}{2}}}{11}+\frac {2 \left (3 \left (d g -e f \right ) e^{2} c +e^{3} \left (b g -2 c f \right )\right ) \left (g x +f \right )^{\frac {9}{2}}}{9}+\frac {2 \left (3 \left (d g -e f \right )^{2} e c +3 \left (d g -e f \right ) e^{2} \left (b g -2 c f \right )+e^{3} \left (a \,g^{2}-b f g +c \,f^{2}\right )\right ) \left (g x +f \right )^{\frac {7}{2}}}{7}+\frac {2 \left (\left (d g -e f \right )^{3} c +3 \left (d g -e f \right )^{2} e \left (b g -2 c f \right )+3 \left (d g -e f \right ) e^{2} \left (a \,g^{2}-b f g +c \,f^{2}\right )\right ) \left (g x +f \right )^{\frac {5}{2}}}{5}+\frac {2 \left (\left (d g -e f \right )^{3} \left (b g -2 c f \right )+3 \left (d g -e f \right )^{2} e \left (a \,g^{2}-b f g +c \,f^{2}\right )\right ) \left (g x +f \right )^{\frac {3}{2}}}{3}+2 \left (d g -e f \right )^{3} \left (a \,g^{2}-b f g +c \,f^{2}\right ) \sqrt {g x +f}}{g^{6}}\) | \(285\) |
default | \(\frac {\frac {2 c \,e^{3} \left (g x +f \right )^{\frac {11}{2}}}{11}+\frac {2 \left (3 \left (d g -e f \right ) e^{2} c +e^{3} \left (b g -2 c f \right )\right ) \left (g x +f \right )^{\frac {9}{2}}}{9}+\frac {2 \left (3 \left (d g -e f \right )^{2} e c +3 \left (d g -e f \right ) e^{2} \left (b g -2 c f \right )+e^{3} \left (a \,g^{2}-b f g +c \,f^{2}\right )\right ) \left (g x +f \right )^{\frac {7}{2}}}{7}+\frac {2 \left (\left (d g -e f \right )^{3} c +3 \left (d g -e f \right )^{2} e \left (b g -2 c f \right )+3 \left (d g -e f \right ) e^{2} \left (a \,g^{2}-b f g +c \,f^{2}\right )\right ) \left (g x +f \right )^{\frac {5}{2}}}{5}+\frac {2 \left (\left (d g -e f \right )^{3} \left (b g -2 c f \right )+3 \left (d g -e f \right )^{2} e \left (a \,g^{2}-b f g +c \,f^{2}\right )\right ) \left (g x +f \right )^{\frac {3}{2}}}{3}+2 \left (d g -e f \right )^{3} \left (a \,g^{2}-b f g +c \,f^{2}\right ) \sqrt {g x +f}}{g^{6}}\) | \(285\) |
pseudoelliptic | \(\frac {2 \sqrt {g x +f}\, \left (\left (\frac {x^{3} \left (\frac {7}{11} c \,x^{2}+\frac {7}{9} b x +a \right ) e^{3}}{7}+\frac {3 d \left (\frac {5}{9} c \,x^{2}+\frac {5}{7} b x +a \right ) x^{2} e^{2}}{5}+d^{2} x \left (\frac {3}{7} c \,x^{2}+\frac {3}{5} b x +a \right ) e +d^{3} \left (\frac {1}{5} c \,x^{2}+\frac {1}{3} b x +a \right )\right ) g^{5}-2 \left (\left (\frac {5}{99} c \,x^{4}+\frac {4}{63} b \,x^{3}+\frac {3}{35} a \,x^{2}\right ) e^{3}+\frac {2 d \left (\frac {10}{21} c \,x^{2}+\frac {9}{14} b x +a \right ) x \,e^{2}}{5}+d^{2} \left (\frac {9}{35} c \,x^{2}+\frac {2}{5} b x +a \right ) e +\frac {d^{3} \left (\frac {2 c x}{5}+b \right )}{3}\right ) f \,g^{4}+\frac {8 \left (\frac {x \left (\frac {50}{99} c \,x^{2}+\frac {2}{3} b x +a \right ) e^{3}}{7}+d \left (\frac {2}{7} c \,x^{2}+\frac {3}{7} b x +a \right ) e^{2}+d^{2} \left (\frac {3 c x}{7}+b \right ) e +\frac {c \,d^{3}}{3}\right ) f^{2} g^{3}}{5}-\frac {16 \left (\left (\frac {10}{33} c \,x^{2}+\frac {4}{9} b x +a \right ) e^{2}+3 d \left (\frac {4 c x}{9}+b \right ) e +3 c \,d^{2}\right ) e \,f^{3} g^{2}}{35}+\frac {128 \left (\left (\frac {5 c x}{11}+b \right ) e +3 c d \right ) e^{2} f^{4} g}{315}-\frac {256 c \,e^{3} f^{5}}{693}\right )}{g^{6}}\) | \(305\) |
gosper | \(\frac {2 \sqrt {g x +f}\, \left (315 c \,e^{3} x^{5} g^{5}+385 b \,e^{3} g^{5} x^{4}+1155 c d \,e^{2} g^{5} x^{4}-350 c \,e^{3} f \,g^{4} x^{4}+495 a \,e^{3} g^{5} x^{3}+1485 b d \,e^{2} g^{5} x^{3}-440 b \,e^{3} f \,g^{4} x^{3}+1485 c \,d^{2} e \,g^{5} x^{3}-1320 c d \,e^{2} f \,g^{4} x^{3}+400 c \,e^{3} f^{2} g^{3} x^{3}+2079 a d \,e^{2} g^{5} x^{2}-594 a \,e^{3} f \,g^{4} x^{2}+2079 b \,d^{2} e \,g^{5} x^{2}-1782 b d \,e^{2} f \,g^{4} x^{2}+528 b \,e^{3} f^{2} g^{3} x^{2}+693 c \,d^{3} g^{5} x^{2}-1782 c \,d^{2} e f \,g^{4} x^{2}+1584 c d \,e^{2} f^{2} g^{3} x^{2}-480 c \,e^{3} f^{3} g^{2} x^{2}+3465 a \,d^{2} e \,g^{5} x -2772 a d \,e^{2} f \,g^{4} x +792 a \,e^{3} f^{2} g^{3} x +1155 b \,d^{3} g^{5} x -2772 b \,d^{2} e f \,g^{4} x +2376 b d \,e^{2} f^{2} g^{3} x -704 b \,e^{3} f^{3} g^{2} x -924 c \,d^{3} f \,g^{4} x +2376 c \,d^{2} e \,f^{2} g^{3} x -2112 c d \,e^{2} f^{3} g^{2} x +640 c \,e^{3} f^{4} g x +3465 a \,d^{3} g^{5}-6930 a \,d^{2} e f \,g^{4}+5544 a d \,e^{2} f^{2} g^{3}-1584 a \,e^{3} f^{3} g^{2}-2310 b \,d^{3} f \,g^{4}+5544 b \,d^{2} e \,f^{2} g^{3}-4752 b d \,e^{2} f^{3} g^{2}+1408 b \,e^{3} f^{4} g +1848 c \,d^{3} f^{2} g^{3}-4752 c \,d^{2} e \,f^{3} g^{2}+4224 c d \,e^{2} f^{4} g -1280 c \,e^{3} f^{5}\right )}{3465 g^{6}}\) | \(540\) |
trager | \(\frac {2 \sqrt {g x +f}\, \left (315 c \,e^{3} x^{5} g^{5}+385 b \,e^{3} g^{5} x^{4}+1155 c d \,e^{2} g^{5} x^{4}-350 c \,e^{3} f \,g^{4} x^{4}+495 a \,e^{3} g^{5} x^{3}+1485 b d \,e^{2} g^{5} x^{3}-440 b \,e^{3} f \,g^{4} x^{3}+1485 c \,d^{2} e \,g^{5} x^{3}-1320 c d \,e^{2} f \,g^{4} x^{3}+400 c \,e^{3} f^{2} g^{3} x^{3}+2079 a d \,e^{2} g^{5} x^{2}-594 a \,e^{3} f \,g^{4} x^{2}+2079 b \,d^{2} e \,g^{5} x^{2}-1782 b d \,e^{2} f \,g^{4} x^{2}+528 b \,e^{3} f^{2} g^{3} x^{2}+693 c \,d^{3} g^{5} x^{2}-1782 c \,d^{2} e f \,g^{4} x^{2}+1584 c d \,e^{2} f^{2} g^{3} x^{2}-480 c \,e^{3} f^{3} g^{2} x^{2}+3465 a \,d^{2} e \,g^{5} x -2772 a d \,e^{2} f \,g^{4} x +792 a \,e^{3} f^{2} g^{3} x +1155 b \,d^{3} g^{5} x -2772 b \,d^{2} e f \,g^{4} x +2376 b d \,e^{2} f^{2} g^{3} x -704 b \,e^{3} f^{3} g^{2} x -924 c \,d^{3} f \,g^{4} x +2376 c \,d^{2} e \,f^{2} g^{3} x -2112 c d \,e^{2} f^{3} g^{2} x +640 c \,e^{3} f^{4} g x +3465 a \,d^{3} g^{5}-6930 a \,d^{2} e f \,g^{4}+5544 a d \,e^{2} f^{2} g^{3}-1584 a \,e^{3} f^{3} g^{2}-2310 b \,d^{3} f \,g^{4}+5544 b \,d^{2} e \,f^{2} g^{3}-4752 b d \,e^{2} f^{3} g^{2}+1408 b \,e^{3} f^{4} g +1848 c \,d^{3} f^{2} g^{3}-4752 c \,d^{2} e \,f^{3} g^{2}+4224 c d \,e^{2} f^{4} g -1280 c \,e^{3} f^{5}\right )}{3465 g^{6}}\) | \(540\) |
risch | \(\frac {2 \sqrt {g x +f}\, \left (315 c \,e^{3} x^{5} g^{5}+385 b \,e^{3} g^{5} x^{4}+1155 c d \,e^{2} g^{5} x^{4}-350 c \,e^{3} f \,g^{4} x^{4}+495 a \,e^{3} g^{5} x^{3}+1485 b d \,e^{2} g^{5} x^{3}-440 b \,e^{3} f \,g^{4} x^{3}+1485 c \,d^{2} e \,g^{5} x^{3}-1320 c d \,e^{2} f \,g^{4} x^{3}+400 c \,e^{3} f^{2} g^{3} x^{3}+2079 a d \,e^{2} g^{5} x^{2}-594 a \,e^{3} f \,g^{4} x^{2}+2079 b \,d^{2} e \,g^{5} x^{2}-1782 b d \,e^{2} f \,g^{4} x^{2}+528 b \,e^{3} f^{2} g^{3} x^{2}+693 c \,d^{3} g^{5} x^{2}-1782 c \,d^{2} e f \,g^{4} x^{2}+1584 c d \,e^{2} f^{2} g^{3} x^{2}-480 c \,e^{3} f^{3} g^{2} x^{2}+3465 a \,d^{2} e \,g^{5} x -2772 a d \,e^{2} f \,g^{4} x +792 a \,e^{3} f^{2} g^{3} x +1155 b \,d^{3} g^{5} x -2772 b \,d^{2} e f \,g^{4} x +2376 b d \,e^{2} f^{2} g^{3} x -704 b \,e^{3} f^{3} g^{2} x -924 c \,d^{3} f \,g^{4} x +2376 c \,d^{2} e \,f^{2} g^{3} x -2112 c d \,e^{2} f^{3} g^{2} x +640 c \,e^{3} f^{4} g x +3465 a \,d^{3} g^{5}-6930 a \,d^{2} e f \,g^{4}+5544 a d \,e^{2} f^{2} g^{3}-1584 a \,e^{3} f^{3} g^{2}-2310 b \,d^{3} f \,g^{4}+5544 b \,d^{2} e \,f^{2} g^{3}-4752 b d \,e^{2} f^{3} g^{2}+1408 b \,e^{3} f^{4} g +1848 c \,d^{3} f^{2} g^{3}-4752 c \,d^{2} e \,f^{3} g^{2}+4224 c d \,e^{2} f^{4} g -1280 c \,e^{3} f^{5}\right )}{3465 g^{6}}\) | \(540\) |
[In]
[Out]
none
Time = 0.56 (sec) , antiderivative size = 429, normalized size of antiderivative = 1.49 \[ \int \frac {(d+e x)^3 \left (a+b x+c x^2\right )}{\sqrt {f+g x}} \, dx=\frac {2 \, {\left (315 \, c e^{3} g^{5} x^{5} - 1280 \, c e^{3} f^{5} + 3465 \, a d^{3} g^{5} + 1408 \, {\left (3 \, c d e^{2} + b e^{3}\right )} f^{4} g - 1584 \, {\left (3 \, c d^{2} e + 3 \, b d e^{2} + a e^{3}\right )} f^{3} g^{2} + 1848 \, {\left (c d^{3} + 3 \, b d^{2} e + 3 \, a d e^{2}\right )} f^{2} g^{3} - 2310 \, {\left (b d^{3} + 3 \, a d^{2} e\right )} f g^{4} - 35 \, {\left (10 \, c e^{3} f g^{4} - 11 \, {\left (3 \, c d e^{2} + b e^{3}\right )} g^{5}\right )} x^{4} + 5 \, {\left (80 \, c e^{3} f^{2} g^{3} - 88 \, {\left (3 \, c d e^{2} + b e^{3}\right )} f g^{4} + 99 \, {\left (3 \, c d^{2} e + 3 \, b d e^{2} + a e^{3}\right )} g^{5}\right )} x^{3} - 3 \, {\left (160 \, c e^{3} f^{3} g^{2} - 176 \, {\left (3 \, c d e^{2} + b e^{3}\right )} f^{2} g^{3} + 198 \, {\left (3 \, c d^{2} e + 3 \, b d e^{2} + a e^{3}\right )} f g^{4} - 231 \, {\left (c d^{3} + 3 \, b d^{2} e + 3 \, a d e^{2}\right )} g^{5}\right )} x^{2} + {\left (640 \, c e^{3} f^{4} g - 704 \, {\left (3 \, c d e^{2} + b e^{3}\right )} f^{3} g^{2} + 792 \, {\left (3 \, c d^{2} e + 3 \, b d e^{2} + a e^{3}\right )} f^{2} g^{3} - 924 \, {\left (c d^{3} + 3 \, b d^{2} e + 3 \, a d e^{2}\right )} f g^{4} + 1155 \, {\left (b d^{3} + 3 \, a d^{2} e\right )} g^{5}\right )} x\right )} \sqrt {g x + f}}{3465 \, g^{6}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 695 vs. \(2 (291) = 582\).
Time = 1.23 (sec) , antiderivative size = 695, normalized size of antiderivative = 2.42 \[ \int \frac {(d+e x)^3 \left (a+b x+c x^2\right )}{\sqrt {f+g x}} \, dx=\begin {cases} \frac {2 \left (\frac {c e^{3} \left (f + g x\right )^{\frac {11}{2}}}{11 g^{5}} + \frac {\left (f + g x\right )^{\frac {9}{2}} \left (b e^{3} g + 3 c d e^{2} g - 5 c e^{3} f\right )}{9 g^{5}} + \frac {\left (f + g x\right )^{\frac {7}{2}} \left (a e^{3} g^{2} + 3 b d e^{2} g^{2} - 4 b e^{3} f g + 3 c d^{2} e g^{2} - 12 c d e^{2} f g + 10 c e^{3} f^{2}\right )}{7 g^{5}} + \frac {\left (f + g x\right )^{\frac {5}{2}} \cdot \left (3 a d e^{2} g^{3} - 3 a e^{3} f g^{2} + 3 b d^{2} e g^{3} - 9 b d e^{2} f g^{2} + 6 b e^{3} f^{2} g + c d^{3} g^{3} - 9 c d^{2} e f g^{2} + 18 c d e^{2} f^{2} g - 10 c e^{3} f^{3}\right )}{5 g^{5}} + \frac {\left (f + g x\right )^{\frac {3}{2}} \cdot \left (3 a d^{2} e g^{4} - 6 a d e^{2} f g^{3} + 3 a e^{3} f^{2} g^{2} + b d^{3} g^{4} - 6 b d^{2} e f g^{3} + 9 b d e^{2} f^{2} g^{2} - 4 b e^{3} f^{3} g - 2 c d^{3} f g^{3} + 9 c d^{2} e f^{2} g^{2} - 12 c d e^{2} f^{3} g + 5 c e^{3} f^{4}\right )}{3 g^{5}} + \frac {\sqrt {f + g x} \left (a d^{3} g^{5} - 3 a d^{2} e f g^{4} + 3 a d e^{2} f^{2} g^{3} - a e^{3} f^{3} g^{2} - b d^{3} f g^{4} + 3 b d^{2} e f^{2} g^{3} - 3 b d e^{2} f^{3} g^{2} + b e^{3} f^{4} g + c d^{3} f^{2} g^{3} - 3 c d^{2} e f^{3} g^{2} + 3 c d e^{2} f^{4} g - c e^{3} f^{5}\right )}{g^{5}}\right )}{g} & \text {for}\: g \neq 0 \\\frac {a d^{3} x + \frac {c e^{3} x^{6}}{6} + \frac {x^{5} \left (b e^{3} + 3 c d e^{2}\right )}{5} + \frac {x^{4} \left (a e^{3} + 3 b d e^{2} + 3 c d^{2} e\right )}{4} + \frac {x^{3} \cdot \left (3 a d e^{2} + 3 b d^{2} e + c d^{3}\right )}{3} + \frac {x^{2} \cdot \left (3 a d^{2} e + b d^{3}\right )}{2}}{\sqrt {f}} & \text {otherwise} \end {cases} \]
[In]
[Out]
none
Time = 0.22 (sec) , antiderivative size = 429, normalized size of antiderivative = 1.49 \[ \int \frac {(d+e x)^3 \left (a+b x+c x^2\right )}{\sqrt {f+g x}} \, dx=\frac {2 \, {\left (315 \, {\left (g x + f\right )}^{\frac {11}{2}} c e^{3} - 385 \, {\left (5 \, c e^{3} f - {\left (3 \, c d e^{2} + b e^{3}\right )} g\right )} {\left (g x + f\right )}^{\frac {9}{2}} + 495 \, {\left (10 \, c e^{3} f^{2} - 4 \, {\left (3 \, c d e^{2} + b e^{3}\right )} f g + {\left (3 \, c d^{2} e + 3 \, b d e^{2} + a e^{3}\right )} g^{2}\right )} {\left (g x + f\right )}^{\frac {7}{2}} - 693 \, {\left (10 \, c e^{3} f^{3} - 6 \, {\left (3 \, c d e^{2} + b e^{3}\right )} f^{2} g + 3 \, {\left (3 \, c d^{2} e + 3 \, b d e^{2} + a e^{3}\right )} f g^{2} - {\left (c d^{3} + 3 \, b d^{2} e + 3 \, a d e^{2}\right )} g^{3}\right )} {\left (g x + f\right )}^{\frac {5}{2}} + 1155 \, {\left (5 \, c e^{3} f^{4} - 4 \, {\left (3 \, c d e^{2} + b e^{3}\right )} f^{3} g + 3 \, {\left (3 \, c d^{2} e + 3 \, b d e^{2} + a e^{3}\right )} f^{2} g^{2} - 2 \, {\left (c d^{3} + 3 \, b d^{2} e + 3 \, a d e^{2}\right )} f g^{3} + {\left (b d^{3} + 3 \, a d^{2} e\right )} g^{4}\right )} {\left (g x + f\right )}^{\frac {3}{2}} - 3465 \, {\left (c e^{3} f^{5} - a d^{3} g^{5} - {\left (3 \, c d e^{2} + b e^{3}\right )} f^{4} g + {\left (3 \, c d^{2} e + 3 \, b d e^{2} + a e^{3}\right )} f^{3} g^{2} - {\left (c d^{3} + 3 \, b d^{2} e + 3 \, a d e^{2}\right )} f^{2} g^{3} + {\left (b d^{3} + 3 \, a d^{2} e\right )} f g^{4}\right )} \sqrt {g x + f}\right )}}{3465 \, g^{6}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 568 vs. \(2 (265) = 530\).
Time = 0.28 (sec) , antiderivative size = 568, normalized size of antiderivative = 1.98 \[ \int \frac {(d+e x)^3 \left (a+b x+c x^2\right )}{\sqrt {f+g x}} \, dx=\frac {2 \, {\left (3465 \, \sqrt {g x + f} a d^{3} + \frac {1155 \, {\left ({\left (g x + f\right )}^{\frac {3}{2}} - 3 \, \sqrt {g x + f} f\right )} b d^{3}}{g} + \frac {3465 \, {\left ({\left (g x + f\right )}^{\frac {3}{2}} - 3 \, \sqrt {g x + f} f\right )} a d^{2} e}{g} + \frac {231 \, {\left (3 \, {\left (g x + f\right )}^{\frac {5}{2}} - 10 \, {\left (g x + f\right )}^{\frac {3}{2}} f + 15 \, \sqrt {g x + f} f^{2}\right )} c d^{3}}{g^{2}} + \frac {693 \, {\left (3 \, {\left (g x + f\right )}^{\frac {5}{2}} - 10 \, {\left (g x + f\right )}^{\frac {3}{2}} f + 15 \, \sqrt {g x + f} f^{2}\right )} b d^{2} e}{g^{2}} + \frac {693 \, {\left (3 \, {\left (g x + f\right )}^{\frac {5}{2}} - 10 \, {\left (g x + f\right )}^{\frac {3}{2}} f + 15 \, \sqrt {g x + f} f^{2}\right )} a d e^{2}}{g^{2}} + \frac {297 \, {\left (5 \, {\left (g x + f\right )}^{\frac {7}{2}} - 21 \, {\left (g x + f\right )}^{\frac {5}{2}} f + 35 \, {\left (g x + f\right )}^{\frac {3}{2}} f^{2} - 35 \, \sqrt {g x + f} f^{3}\right )} c d^{2} e}{g^{3}} + \frac {297 \, {\left (5 \, {\left (g x + f\right )}^{\frac {7}{2}} - 21 \, {\left (g x + f\right )}^{\frac {5}{2}} f + 35 \, {\left (g x + f\right )}^{\frac {3}{2}} f^{2} - 35 \, \sqrt {g x + f} f^{3}\right )} b d e^{2}}{g^{3}} + \frac {99 \, {\left (5 \, {\left (g x + f\right )}^{\frac {7}{2}} - 21 \, {\left (g x + f\right )}^{\frac {5}{2}} f + 35 \, {\left (g x + f\right )}^{\frac {3}{2}} f^{2} - 35 \, \sqrt {g x + f} f^{3}\right )} a e^{3}}{g^{3}} + \frac {33 \, {\left (35 \, {\left (g x + f\right )}^{\frac {9}{2}} - 180 \, {\left (g x + f\right )}^{\frac {7}{2}} f + 378 \, {\left (g x + f\right )}^{\frac {5}{2}} f^{2} - 420 \, {\left (g x + f\right )}^{\frac {3}{2}} f^{3} + 315 \, \sqrt {g x + f} f^{4}\right )} c d e^{2}}{g^{4}} + \frac {11 \, {\left (35 \, {\left (g x + f\right )}^{\frac {9}{2}} - 180 \, {\left (g x + f\right )}^{\frac {7}{2}} f + 378 \, {\left (g x + f\right )}^{\frac {5}{2}} f^{2} - 420 \, {\left (g x + f\right )}^{\frac {3}{2}} f^{3} + 315 \, \sqrt {g x + f} f^{4}\right )} b e^{3}}{g^{4}} + \frac {5 \, {\left (63 \, {\left (g x + f\right )}^{\frac {11}{2}} - 385 \, {\left (g x + f\right )}^{\frac {9}{2}} f + 990 \, {\left (g x + f\right )}^{\frac {7}{2}} f^{2} - 1386 \, {\left (g x + f\right )}^{\frac {5}{2}} f^{3} + 1155 \, {\left (g x + f\right )}^{\frac {3}{2}} f^{4} - 693 \, \sqrt {g x + f} f^{5}\right )} c e^{3}}{g^{5}}\right )}}{3465 \, g} \]
[In]
[Out]
Time = 0.16 (sec) , antiderivative size = 283, normalized size of antiderivative = 0.99 \[ \int \frac {(d+e x)^3 \left (a+b x+c x^2\right )}{\sqrt {f+g x}} \, dx=\frac {{\left (f+g\,x\right )}^{9/2}\,\left (2\,b\,e^3\,g-10\,c\,e^3\,f+6\,c\,d\,e^2\,g\right )}{9\,g^6}+\frac {{\left (f+g\,x\right )}^{7/2}\,\left (6\,c\,d^2\,e\,g^2-24\,c\,d\,e^2\,f\,g+6\,b\,d\,e^2\,g^2+20\,c\,e^3\,f^2-8\,b\,e^3\,f\,g+2\,a\,e^3\,g^2\right )}{7\,g^6}+\frac {2\,{\left (f+g\,x\right )}^{5/2}\,\left (d\,g-e\,f\right )\,\left (c\,d^2\,g^2-8\,c\,d\,e\,f\,g+3\,b\,d\,e\,g^2+10\,c\,e^2\,f^2-6\,b\,e^2\,f\,g+3\,a\,e^2\,g^2\right )}{5\,g^6}+\frac {2\,\sqrt {f+g\,x}\,{\left (d\,g-e\,f\right )}^3\,\left (c\,f^2-b\,f\,g+a\,g^2\right )}{g^6}+\frac {2\,{\left (f+g\,x\right )}^{3/2}\,{\left (d\,g-e\,f\right )}^2\,\left (3\,a\,e\,g^2+b\,d\,g^2+5\,c\,e\,f^2-4\,b\,e\,f\,g-2\,c\,d\,f\,g\right )}{3\,g^6}+\frac {2\,c\,e^3\,{\left (f+g\,x\right )}^{11/2}}{11\,g^6} \]
[In]
[Out]